/* eslint-disable no-unused-vars */
/* eslint-disable class-methods-use-this */
/* eslint-disable import/no-cycle */
import React from 'react';
import BaseControl from './BaseControl';

/**
 * 空白控件:允许用户自定义空白区域大小，占位区域留白
 */
class BlankControl extends BaseControl {
  static create(props, dataProps, extProps) {
    return new BlankControl(props, dataProps, extProps);
  }

  constructor(props, dataProps, extProps) {
    const dataProps2 = {
      title: '',
      type: 'Blank',
      // height: 30,
      ...dataProps,
    };
    super(props, dataProps2, extProps);
    this.name = '空白区域';
    // this.icon = '';
  }

  getPropertyTabs(parentForm) {
    return [...super.getPropertyTabs(parentForm)];
  }

  getDesignControl(parentForm) {
    return <React.Fragment {...this.extProps} />;
  }
}

export default BlankControl;
